/*  歌单对象  */

export default class PlayList {
  constructor ({id, name, desc, trackCount, playCount, commentCount, shareCount, subscribedCount, subscribed,
    imgUrl, imgId, tags, userId, userName, userAvatar}) {
    this.id = id // ID
    this.name = name
    this.desc = desc // 简介
    this.trackCount = trackCount // 音乐数量
    this.playCount = playCount // 播放数
    this.commentCount = commentCount //  评论数
    this.shareCount = shareCount // 分享次数
    this.subscribedCount = subscribedCount // 关注量
    this.subscribed = subscribed // 此账号是否关注（需要登录）
    this.imgUrl = imgUrl // 歌单图片
    this.imgId = imgId // 歌单图片ID
    this.tags = tags // 歌单标签
    this.userId = userId // 歌单的用户ID
    this.userName = userName //  歌单用户名称
    this.userAvatar = userAvatar
  }
}
